package com.steam.xbcc.feign;

import com.steam.xbcc.doc.CourseDoc;
import com.steam.xbcc.fallback.CourseEsServiceFallbackFactory;
import com.steam.xbcc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value = "service-search", fallbackFactory = CourseEsServiceFallbackFactory.class)
public interface CourseEsService {

    @RequestMapping(value = "/course/saveCourseEs", method = RequestMethod.POST)
    JSONResult saveCourseEs(@RequestBody CourseDoc courseDoc);

}
